/*
	$Id: common.js 25 2007-05-18 12:31:44Z beave $
*/

var iFileFields=1;

function addField(strContainer) {
	iFileFields++;

	var xNewField = document.createElement('input');
	xNewField.setAttribute('type', 'file');
	xNewField.setAttribute('name', 'file'+iFileFields);

	var xContainer = document.getElementById(strContainer);
	xContainer.appendChild(xNewField);

	var xCounter = document.getElementById('FileCounter');
	xCounter.setAttribute('value', iFileFields);
}
